package com.example.mam.exception;

/**
 * @author muncie [muncie.hoo@qq.com]
 */
public class BizExceptionMessage {
    private int code;
    private String message;

    public BizExceptionMessage(BizExceptionEnum bizExceptionEnum) {
        this.code = bizExceptionEnum.getCode();
        this.message = bizExceptionEnum.getMessage();
    }

    public BizExceptionMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public BizExceptionMessage() {
    }

    @Override
    public String toString() {
        return "BizExceptionMessage{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
